package com.smart.constants;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "cardc.eureka")
public class EurekaAdminConfig {
	/**
	 * 下线操作时,至少要保留的服务数量
	 */
	private Integer leastOnLineNum = 0;
	/**
	 * 注册中心地址
	 */
	private String eurekaZone = "";

	public Integer getLeastOnLineNum() {
		return leastOnLineNum;
	}

	public void setLeastOnLineNum(Integer leastOnLineNum) {
		this.leastOnLineNum = leastOnLineNum;
	}

	public String getEurekaZone() {
		return eurekaZone;
	}

	public void setEurekaZone(String eurekaZone) {
		this.eurekaZone = eurekaZone;
	}
}
